package CarRental;

//租客
public class Tenant {
    private String name, sex, telephone, licensePlate;
    private int day;
    private double money;

    public Tenant() {
    }

    public Tenant(String name, String sex, String telephone, String licensePlate, int day, double money) {
        this.name = name;
        this.sex = sex;
        this.telephone = telephone;
        this.licensePlate = licensePlate;
        this.day = day;
        this.money = money;
    }

    public void tenantShow() {
        System.out.println("  " +name + "  " + sex + "  " + telephone +
                "  " + licensePlate + "  " + day+ "  " + money);
    }

    @Override
    public String toString() {
        return "Tenant{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", telephone='" + telephone + '\'' +
                ", licensePlate='" + licensePlate + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getLicensePlate() {
        return licensePlate;
    }

    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}
